package ${packageName};

import com.it.cloud.core.R;
import com.it.cloud.core.dao.page.PageBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;

/**
* @author lt
*/
@Api(tags = "${name}")
public interface ${name}Api {

    @ApiOperation(value = "新增")
    R<?> add(${name} obj);

    @ApiOperation(value = "批量删除")
    R<?> del(List<Long> idList);

    @ApiOperation(value = "修改")
    R<?> update(${name} obj);

    @ApiOperation(value = "批量修改")
    R<?> batch(
        List<Long> idList,
<#list batchProNames as proName>
        Boolean ${proName}Ck,
</#list>
        ${name} obj
    );

    @ApiOperation(value = "详情")
    R<${name}> info(Long id);

    @ApiOperation(value = "列表查询")
    R<List<${name}>> list();

    @ApiOperation(value = "分页查询")
    R<PageBean<${name}>> page(Integer page, Integer pageSize, String searchStr);
}